DISABLE OBJECT ZWRITE
This command will disable the Z write state of the object.
DISABLE OBJECT ZWRITE Object Number
Object Number
Integer
Specify an object number between 1 and 2415919103.
This command does not return a value.
The Z write state controls whether each pixel of the rendered object writes into the Z depth buffer. The default value is enabled, where the object writes pixels to the Z buffer only when a pixel of the object is successfully rendered to the screen. By deactivating this behaviour, the object does not affect the depth information on the rendered screen.
set display mode 800,600,32
cls
make object sphere 1,20
DISABLE OBJECT ZWRITE 1
do
loop
end
BASIC3D Commands Menu
Index